/**
 * IWorkOrderService.java
 * Created at 2017-11-22
 * Created by zhanghailin
 * Copyright (C) 2017 BROADTEXT SOFTWARE, All rights reserved.
 */
package com.broadtext.rms.system.service;

import java.util.Map;

import com.broadtext.common.bean.EntityPageBean;
import com.broadtext.common.exp.ServiceException;
import com.broadtext.common.service.IEntityService;
import com.broadtext.rms.system.model.TmWoFile;
import com.broadtext.rms.system.model.TmWorkOrder;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;

/**
 * <p>ClassName: IWorkOrderService</p>
 * <p>Description: TODO</p>
 * <p>Author: zhanghailin</p>
 * <p>Date: 2017-11-22</p>
 */
public interface IWorkOrderService extends IEntityService<TmWorkOrder>{
    
    EntityPageBean<Object> getWorkOrderHistory(Map<String, Object> map, PageBounds pageBounds) throws ServiceException;
    
    EntityPageBean<Object> getWorkOrderFile(Map<String, Object> map, PageBounds pageBounds) throws ServiceException;
    
    Map<String, Object> getWordOrderDetail(String woId, String woType) throws ServiceException;
    
    void updateWoStatus(String woId, String woStatus, String woType, String updateUser) throws ServiceException;
    
    void saveFile(TmWoFile woFile) throws ServiceException;
    
    void deleteFile(TmWoFile woFile) throws ServiceException;
    
    TmWoFile getWoFileById(String pkId) throws ServiceException;

}
